package com.wlw.entity;

import java.util.HashSet;
import java.util.Set;

public class QA {
	private Integer id;
	private String title;
	private String content;
	private String time;
	//一个问答包含多个回复
	private Set<QAreply> qAreplies = new HashSet<QAreply>();
	//一个问答属于一个用户
	private User user;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getTime() {
		return time;
	}
	public void setTime(String time) {
		this.time = time;
	}
	public Set<QAreply> getqAreplies() {
		return qAreplies;
	}
	public void setqAreplies(Set<QAreply> qAreplies) {
		this.qAreplies = qAreplies;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	
}
